package com.zys.el.time.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @TableName absorbed
 */
@TableName(value = "absorbed_deal")
@Data
@ApiModel("待办专注实体类")
public class AbsorbedDeal implements Serializable {
    /**
     * 专注id
     */
    @TableId
    @ApiModelProperty("专注id")
    private Long absorbedId;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private Long userId;

    /**
     * 待办id
     */
    @ApiModelProperty("待办id")
    private Long dealId;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "专注开始时间", dataType = "String", notes = "例如：2023-03-18T11:01:02")
    private LocalDateTime startDateTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "专注结束时间", dataType = "String", notes = "例如：2023-03-18T11:01:02")
    private LocalDateTime endDateTime;

    /**
     * 专注时长
     */
    @ApiModelProperty("专注时长")
    private String absorbedDuration;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}